package com.atguigu.ssyx.acl.service;

import com.atguigu.ssyx.model.acl.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface PermissionService extends IService<Permission> {
    //查询所有菜单
    List<Permission> queryAllPermission();

    //递归删除菜单
    void removeChildById(Long id);

    //获取所有角色，和根据角色id查询角色分菜单列表
//    List<Permission> getPerminssionByRoleId(Long roleId);    //修改过

    //为角色进行分配权限
//    void saveRolePermission(Long roleId, Long[] permissionIds);
}
